package dq.study.jvm.classloader;

/**
 * 实例化--构造函数中无法同时调用父类的构造函数和本类的其他重载构造函数
 *
 * @author dongqun
 * @date 2020/9/8 14:42
 */
public class ConstructorExample2{
    private int i;

    ConstructorExample2() {
        super();
//        this(1);  // Error:Constructor call must be the first statement in a constructor
    }

    ConstructorExample2(int i) {
        this.i = i;
    }
}
